package com.whucke.im.enums;

/**
 * 用户发送消息类型
 *
 * @author Zhang Peng
 * @since 2019/2/20 11:20
 */
public enum MessageType {

    SINGLE("SINGLE", "点对点"),
    GROUP("GROUP", "群发");

    /**
     * code码，用户数据库存储和业务处理
     */
    private String code;
    /**
     * 枚举名称
     */
    private String name;

    MessageType(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }}
